#!/bin/sh
if test -z "$XDG_VTNR" ; then
  exec /usr/bin/X -keeptty -nolisten tcp "$@" >/tmp/.startx.log 2>&1
else
  exec /usr/bin/X -keeptty -nolisten tcp "$@" vt$XDG_VTNR >/tmp/.startx.log 2>&1
fi
